#include "events_def.h"
#include <iostream>
#include <sstream>

std::ostream& MobileCodeReqEv::dump(std::ostream& out) const {

	out << "MobileCodeReq sn=" << get_sn() << ",";
	out << "mobile=" << msg_.mobile() << std::endl;
	return out;
}

std::ostream& MobileCodeRspEv::dump(std::ostream& out) const {
	out << "MobileCodeReqEv sn =" << get_sn() << ",";
	out << "Code=" << msg_.code() << std::endl;
	out << "icode=" << msg_.icode() << std::endl;
	out << "Describle=" <<  msg_.data() << std::endl;
	return out;
}

std::ostream& LoginReqEv::dump(std::ostream& out) const {

	out << "LoginReqEv sn=" << get_sn() << ",";
	out << "mobile=" << msg_.mobile() << std::endl;
	out << "icode=" << msg_.icode() << std::endl;
	return out;
}

std::ostream& LoginRspEv::dump(std::ostream& out) const {
	out << "LoginRsqEv sn =" << get_sn() << ",";
	out << "Code=" << msg_.code() << std::endl;
	out << "Describle=" << msg_.desc() << std::endl;
	return out;
}

std::ostream& RechargeReqEv::dump(std::ostream& out) const {
	out << "RechargeReqEv sn=" << get_sn() << ",";
	out << "mobile=" << msg_.mobile() << std::endl;
	out << "amount=" << msg_.amount() << std::endl;
	return out;
}

std::ostream& RechargeRspEv::dump(std::ostream& out) const {
	out << "RechargeRspEv sn =" << get_sn() << ",";
	out << "Code=" << msg_.code() << std::endl;
	out << "Describle=" << msg_.desc() << std::endl;
	out << "balance=" << msg_.balance() << std::endl;
	return out;
}